package com.example.flowableoa.dubbo;


import com.example.comment_oa.dubbo.FuLiLiuChengJuJueDubbo;
import com.example.comment_oa.pojos_vo.flowableVo.taskVo;
import com.example.flowableoa.service.IFlowTaskService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@Slf4j
@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class JuJueFuLiLiuChengImpl implements FuLiLiuChengJuJueDubbo {

    @Resource
    IFlowTaskService iFlowTaskService;

    @Override
    public void fuliliuchengjujue(taskVo taskVo) {
        iFlowTaskService.complete(taskVo);
    }

    @Override
    public void fuliliuchengtongyi(taskVo taskVo) {
        iFlowTaskService.completetongyi(taskVo);
    }
}
